<!-- 门店仓库绑定-->
@layout("/common/_container.html",{plugins:["ztree"],js:["/assets/basic/basicPutgoods/basicPutgoods_mlc.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">收货单位表管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md3 layui-col-lg2">
            <div class="layui-card">
                <div class="layui-card-body mini-bar">
                    <div class="ztree" id="deptTree"></div>
                </div>
            </div>
        </div>
        <div class="layui-col-sm12 layui-col-md9 layui-col-lg10">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
		                    <div class="layui-inline">
		                        <select id="unitType" lay-filter="unitType">
		                            <option value="门店">门店</option>
		                        </select>
		                    </div>
				            <div class="layui-inline">
				                <input id="condition" class="layui-input" type="text" placeholder="单位名称"/>
				            </div>
				            <div class="layui-inline">
				                <input id="id" class="layui-input" type="text" placeholder="单位ID"/>
				            </div>
				            <div class="layui-inline">
				                <input id="unitNumber" class="layui-input" type="text" placeholder="单位编号"/>
				            </div>
				            <div class="layui-inline">
				                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
<!--				                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>-->
				                <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
<!--				                <button id="btnExpimporthx" class="layui-btn icon-btn"><i class="layui-icon">&#xe67c;</i>导入excel</button>-->
<!--			                	<button id="pullxlbStore" class="layui-btn icon-btn"><i class="layui-icon">&#xe601;</i>拉取新零帮门店</button>-->
<!--				                <button id="weChat" class="layui-btn icon-btn layui-btn-warm"><i class="layui-icon">&#xe677;</i>单位微信注册码</button>-->
				            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="basicPutgoodsTable" lay-filter="basicPutgoodsTable"></table>
                    <table class="layui-table" id="basicAddressTable" lay-filter="basicAddressTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<input id="putgoodsId" type="hidden">

<script type="text/html" id="tableBar">
<!--    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>-->
<!--    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>-->
</script>
<script type="text/html" id="tableBarAddress">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="unbind">解绑</a>
<!--    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="deleteAddress">删除</a>-->
</script>
<script type="text/html" id="toolbarfromAddress">
            <div class="layui-inline">
                <button id="btnAddAddress" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>绑定仓库</button>
            </div>
</script>

<script type="text/html" id="switchWlTpl">
    <input type="checkbox" lay-filter="switchWl" value="{{d.id}}" lay-skin="switch" lay-text="启用|禁用" {{d.switchWl=='1'?'checked':''}} />
</script>



@}